<template>
  <div >
    <ul>
      <router-link to="/films/nowplay" custom v-slot="{navigate,isActive}">
        <li @click="navigate" :class="isActive?'inb':''">正在热映</li>
      </router-link>
      <router-link to="/films/comingsoon" custom v-slot="{navigate,isActive}">
        <li @click="navigate" :class="isActive?'inb':''">即将上映</li>
      </router-link>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'FilmHeader'
}
</script>

<style scoped lang="scss">
div{
  height: 2rem;
  position: sticky;
  top: 0;
  background-color:whitesmoke;
  @media screen and (min-width: 480px) {
    height: 1rem;
  }
  ul{
    display: flex;
    line-height: 2rem;
    cursor: pointer;
    @media screen and (min-width: 480px) {
      line-height: 1rem;
    }
    li{
      flex: 1;
      text-align: center;
    }
  }
}
</style>
